package com.school.domain;

import java.io.Serializable;

public class ClassRoom implements Serializable {
    private static final long serialVersionUID = -3045834050624455128L;
    private long rid;
    private String name;
    private long num; // 座位数
    private long nowNum; // 被占座位

    public ClassRoom() {
    }

    public ClassRoom(long rid, String name, long num, long nowNum) {
        this.rid = rid;
        this.name = name;
        this.num = num;
        this.nowNum = nowNum;
    }

    @Override
    public String toString() {
        return "ClassRoom{" +
                "rid=" + rid +
                ", name='" + name + '\'' +
                ", num=" + num +
                ", nowNum=" + nowNum +
                '}';
    }

    public long getRid() {
        return rid;
    }

    public void setRid(long rid) {
        this.rid = rid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public long getNowNum() {
        return nowNum;
    }

    public void setNowNum(long nowNum) {
        this.nowNum = nowNum;
    }
}
